~:extend('Common')~ 
~[body]~
<div>
按
<a href="~~View_Helper::makeUri('shop/index',array('line'=>Context::getParam('line'),
			'station'=>Context::getParam('station'),
			'tag'=>Context::getParam('tag')))~">默认</a>


<a href="~~View_Helper::makeUri('shop/index',array('line'=>Context::getParam('line'),
			'station'=>Context::getParam('station'),
			'tag'=>Context::getParam('tag'),
			'order'=>'time'))~">时间</a>
			
<a href="~~View_Helper::makeUri('shop/index',array('line'=>Context::getParam('line'),
			'station'=>Context::getParam('station'),
			'tag'=>Context::getParam('tag'),
			'order'=>'view'))~">浏览次数</a>
排序
</div>
<div>
<a href="~~View_Helper::makeUri('shop/index',array('tag'=>Context::getParam('tag'),
			'order'=>Context::getParam('order')))~">所有线路</a>
~foreach ($lines as $line):~
<a href="~~View_Helper::makeUri('shop/index',array('line'=>$line.line,
			'tag'=>Context::getParam('tag'),
			'order'=>Context::getParam('order')))~">~~$line.line~号线</a>
~endforeach~
</div>

~if(!empty($stations)):~
<div>
~foreach ($stations as $station):~
<a href="~~View_Helper::makeUri('shop/index',array('station'=>$station.id,
			'tag'=>Context::getParam('tag'),
			'order'=>Context::getParam('order')))~">~~$station.name~</a>
~endforeach~
</div>
~endif~

<div>
<a href="~~View_Helper::makeUri('shop/index',array('line'=>Context::getParam('line'),
			'station'=>Context::getParam('station'),
			'order'=>Context::getParam('order')))~">所有标签</a>
~foreach ($tags as $tag):~
<a href="~~View_Helper::makeUri('shop/index',array('line'=>Context::getParam('line'),
			'station'=>Context::getParam('station'),
			'tag'=>$tag.name,
			'order'=>Context::getParam('order')))~">~~$tag.name~</a>
~endforeach~
</div>

~foreach ($list as $shop):~
<div>
<h3><a href="~~View_Helper::makeUri('shop/view', array('id' => $shop.id))~">~~$shop.name~</a></h3>
<h5>收录时间: ~~View_Helper::makeTime($shop.create_time, 'Y-m-d')~</h5>
<p>~~$shop.intro~</p>

~if(!empty($shop.title)):~
<h5>活动:~~$shop.title~(~~View_Helper::makeTime($shop.start_time)~ -- ~~View_Helper::makeTime($shop.end_time)~)</h5>
<p>地点:~~$shop.location~</p>
</div>
~endif~

~endforeach~ 
~[/body]~
